package com.vito.framework.system.feature.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.vito.framework.base.model.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 作者：包子
 * 时间：2020/10/9 15:05
 * 描述：
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("es_feature")
@ApiModel(value = "es_feature对象", description = "业务字典表")
public class Feature extends Entity<Feature> {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    @ApiModelProperty("分类名称")
    private String name;

    @TableField("code")
    @ApiModelProperty("代码")
    private String code;

    @TableField("sort")
    @ApiModelProperty("排序")
    private String sort;

    @TableField("image")
    @ApiModelProperty("图标")
    private String image;

    @TableField(exist = false)
    @ApiModelProperty("图标")
    private String imageShow;

    @TableField("type")
    @ApiModelProperty("数据字典：颜色 瑕疵")
    private String type;

    @TableField(exist = false)
    @ApiModelProperty("代码")
    private String typeName;

    @TableField(exist = false)
    @ApiModelProperty("价格")
    private Double price;

    @TableField(exist = false)
    @ApiModelProperty("代码")
    private String serviceCode;

    @TableField("scene")
    @ApiModelProperty("使用场景(字典表)")
    private String scene;

    @TableField(exist = false)
    @ApiModelProperty("代码")
    private Boolean flag;
}
